#-*-coding:utf-8-*-

def get_params(request):
    num = request.GET.get('page')
    if not num:
        num = 1
    else:
        num = int(num)
    entry = request.GET.get('entry')
    if not entry:
        entry = 10
    else:
        entry = int(entry)
    search = request.GET.get('top-search')
    start = request.GET.get('start')
    end = request.GET.get('end')
    return search, start, end, entry, num